package com.mh.pojo;

import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户表(User)表实体类
 *
 * @author zmh
 * @since 2025-02-08 09:18:50
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    //用户ID
    private Integer id;
    //微信openid
    private String openid;
    //用户昵称
    private String nickname;
    //头像存储的名称
    private String avatarName;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;

    public User(String openid, String nickname, String avatarName) {
        this.openid = openid;
        this.nickname = nickname;
        this.avatarName = avatarName;
    }

}

